<?php
$products_for_order = '';
$products = new Table('products');

$products->set_relations(array(
		'category_id'	=> array('category', 'id', 'name'),
		'status'	=> array('product_status', 'id', 'name')
));

if (!empty($_SESSION['basket']['order']) && is_array($_SESSION['basket']['order']))
{
	$pr_for_order = implode(', ', array_keys($_SESSION['basket']['order']));
	$products->select(" `$products->table`.`id` IN ($pr_for_order) ");
	$products_for_order =  get_table_data($products);
}
// echo '<pre>';
// print_r($products_for_order);
// echo '</pre>';
$_tpl->set(array(
	'products'	=> $products_for_order
));
?>